package com.hexinfo.dmpro.component.comparison.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @Package com.hexinfo.dmpro.component.comparison.enums
 * @ClassName TableContrastEnums
 * @Description 任务状态与类型的枚举类
 * @Author Huang Yanyihe
 * @Date 2023/9/10 21:28
 * @Version v1.0
 **/
@AllArgsConstructor
public enum TableContrastEnums {

    ACHIEVE("ACHIEVE","状态成功"),

    RUNNING("RUNNING","状态比对中"),

    FAIL("FAIL","状态失败"),

    WARM("WARM","热备比对"),

    COLD("COLD","冷备比对");

    @Getter
    private final String value;

    @Getter
    private final String desc;

    public static List<String> getValues() {
        return Arrays.stream(TableContrastEnums.values()).map(t -> t.getValue()).collect(Collectors.toList());
    }

}
